package com.eshore.norm.pojo.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author HJ
 * @date 2024/1/16 10:05
 */
@NoArgsConstructor
@Data
public class NormVmMonitorPO {

    @JsonProperty("message")
    private String message;
    @JsonProperty("content")
    private List<ContentDTO> content;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("timestamp")
    private String timestamp;

    @NoArgsConstructor
    @Data
    public static class ContentDTO {
        @JsonProperty("uuid")
        private String uuid;
        @JsonProperty("name")
        private String name;
        @JsonProperty("cpuUsage")
        private String cpuUsage;
        @JsonProperty("memUsedPercent")
        private String memUsedPercent;
        @JsonProperty("averBytesRecvRate")
        private String averBytesRecvRate;
        @JsonProperty("averBytesSentRate")
        private String averBytesSentRate;
    }
}
